<title>优惠券管理</title>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>用户id</th>
						<th>名称</th>
						<th>金额(￥)</th>
						<th>明细类型</th>
						<th>明细时间</th>
						<th title="支付宝回调后成功">状态</th>
					</tr>
				</thead>
				<tbody>
				<#list pager.itemList as u>
					<tr>
						<td><span class="gray center">${u.id!}</span></td>
						<td><span class="gray center">${u.userId!}</span></td>
						<td><span class="gray center">${u.name!}</span></td>
						<td><span class="gray center">${u.money!}</span></td>
						<td><span class="green center">
							<#if u.type == 1>
								<span class="label label-sm label-warning arrowed">
								余额
								</span>
							<#else>
								<span class="label label-sm label-success arrowed">
									积分
								</span>
							</#if>
						</span></td>
						<td>
							<#if u.createTime??>
								${tagUtils.formatDate(u.createTime)!}
							</#if>
						</td>
						<td><span class="green center">
							<#if u.state == 1>
								成功
							<#else>
								处理中...
							</#if>
						</span></td>
					</tr>
				</#list>
				</tbody>
			</table>
		</div><!-- /.table-responsive -->
		<div class="hr hr-18 dotted hr-double"></div>
		<@h.page pager=pager action="${ctx}/admin/bank/list" />
		
	</div><!-- /span -->
	
</div><!-- /row -->

<#if errorMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer red"></i>
		<span class="pink">${errorMsg}</span>
	</h4>
</#if>

<#if infoMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer green"></i>
		<span class="pink">${infoMsg}</span>
	</h4>
</#if>
<script>
	$(document).ready(function(){
		RP.addBreadcrumb([{name:"余额积分明细列表 "}]);
	});
</script>